package aop;

public class Target {
    public void selectAll(){
        System.out.println(1/0);
        System.out.println("查询所有数据");
    }
    public void selectById(int id){
        System.out.println("查询id为"+id+"的数据");
    }
    public void selectByName(String name){
        System.out.println("查询name为"+name+"的数据");
    }
    public int selectByAdd(int a,int b){
        System.out.println("查询结果为"+(a+b));
        return a+b;
    }
    public void selectabc(){
        //System.out.println(1/0);
        System.out.println("运行出现异常");
    }
}